From 4202a21cf6ab7ddfeef595f5a99f7da0afca262c Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Tue, 7 Apr 2015 18:26:15 +0100 Subject: [PATCH] x86/link: Discard the alternatives ".discard" sections This appears to have been missed when porting the alternatives framework from Linux, and saves us a section which is otherwise loaded into memory. Signed-off-by: Andrew Cooper CC: Keir Fraser CC: Jan Beulich Reviewed-by: Tim Deegan --- xen/arch/x86/xen.lds.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index d4b1f1a5d3..c8541813ed 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -197,6 +197,8 @@ SECTIONS *(.exit.text) *(.exit.data) *(.exitcall.exit) + *(.discard) + *(.discard.*) *(.eh_frame) #ifdef EFI *(.comment) -- 2.30.2